package com.foo.designpattern.strategy;

/**
 * com.foo.designpattern.strategy
 * Created with IntelliJ IDEA.
 * Created by jiang on 2016-05-17 14:29.
 *
 * @Description 具体策略角色(Concrete Strategy)
 * 包含了对初级会员的折后价格计算方法
 */

public class PrimaryMemberStrategy implements MemberStrategy {
    @Override
    public double calcPrice(double bookPrice) {
        System.out.println("对于初级会员的折扣为10%");
        return bookPrice * 0.9;
    }
}
